package cn.jly.spring.boot.cloud.config;

import cn.jly.spring.boot.cloud.beans.Animal;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lanyangji
 * @description bean的配置类
 * @date 2020/11/8 上午 9:26
 */
@Configuration
public class BeansConfig {
    @Bean
    public Animal animal() {
        return new Animal(5001L, "cat");
    }
}
